package main

import "fmt"

func main()  {


	// 定义一个map  可为string   value为一个map
	map1 :=make(map[string]map[string]string)

	m1:=make(map[string]string)
	m1["age"]="44"
	m1["name"]="zhang"
	m1["salary"]="44545"

	m2:=make(map[string]string)
	m2["age"]="44"
	m2["name"]="long"
	m2["salary"]="45454"

	map1["1001"]=m1
	map1["1002"]=m2

	fmt.Println(map1)   //map[1001:map[age:44 name:zhang salary:44545] 1002:map[age:44 name:long salary:45454]]

	m2 =m1  //将m1赋值 给 m2  map[age:44 name:zhang salary:44545] map[age:44 name:zhang salary:44545]
	fmt.Println(m2,m1)

	m1["age"]="1000"   //修改m1的值  map[age:1000 name:zhang salary:44545] map[age:1000 name:zhang salary:44545]
    fmt.Println(m2,m1)
}